home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Pattern accessors
- Sent: 4/16/96 3:49 PM
- Received: 4/16/96 4:01 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >Why does FW_CColor have a complete set of accessors:
- > void SetRGB(unsigned short r, unsigned short g, unsigned
- >short b);
- > void GetRGB(unsigned short& r, unsigned short& g,
- >unsigned short& b) const;
- >
- >and so on and so forth while FW_CPattern lacks them?? The
- >FW_CColorPatternRep DOES have some accessors, but they're _private_!!
- >What's going on here?
- >
- >I'm also wondering about the split of characteristics between FW_CInkRep
- >and FW_CStyleRep. IE, why does the Style have a pattern in it and why does
- >the Ink not have it and so on and so forth. In fact, since all objects have
- >BOTH, why have two things to completely describe the drawing mode?
- >
- >And one further puzzlement - how does one get from a Style to a color
- >pattern?
- >Thanx in advance.
- >
- >Martin
-
- The ODF graphics uses the Quickdraw GX style. A shape needs an ink, a
- style and a font (only necessary for text based shapes). An ink
- represents the foregroung, background and transfer mode. The style
- represents the pensize, the pattern (Black and White or Color) and the
- pen style (dashed, doted...). The font has the font size, style and name.
- So, an ink and a style are two very different objects. It is normal they
- don't have the same API.
-
- To go from a style to a pattern calls myStyle->GetPattern.
-
- When you say pattern doesn't have Get and SetRGB are you thinking about
- the Mac call MakeRGBPat? This is something we are currently missing. You
- can still do it by creating a Macintosh Pixpat using MakeRGBPat and
- create a FW_CPattern using the PixPat.
-
-
- .......................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- .......................................................................
-
-
-